package com.xtwy.qrcodescan.zxing.utils;

/*
 * -----------------------------------------------------------------
 * Copyright (C) 2014-2016, by your company, All rights reserved.
 * -----------------------------------------------------------------
 * 文    件: AppliationUtil.java
 * 作    者: 侯建军
 * 版    权: 1.0.0
 * 描    述:
 * 创建时间: 2018/9/14 9:16
 * 更新时间：2018/9/14 9:16
 * -----------------------------------------------------------------
 * 2018/9/14 9:16: 创建 AppliationUtil.java (侯建军);
 * -----------------------------------------------------------------
 */
public class AppliationUtil {
    //应用程序最大可用内存
    public static int MAX_MEMORY = ((int) Runtime.getRuntime().maxMemory())/1024/1024;
    //应用程序已获得内存
    public static long TOTAL_MEMORY = ((int) Runtime.getRuntime().totalMemory())/1024/1024;
    //应用程序已获得内存中未使用内存
    public static long FREE_MEMORY = ((int) Runtime.getRuntime().freeMemory())/1024/1024;
}
